package com.caipiao.mapper;

import com.caipiao.pojo.SPlanItem;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedList;
import java.util.List;

public interface SPlanItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SPlanItem record);

    int insertSelective(SPlanItem record);

    SPlanItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SPlanItem record);

    int updateByPrimaryKey(SPlanItem record);
    //赛事查询
    List<SPlanItem> selectplanItem(@Param("matchState")Integer matchState);
    //根据方案查赛事单关
    LinkedList<SPlanItem> selectplanItemByPlanId(Integer PlanId);
    //查询赛事详情
    SPlanItem selectplanItemById(Integer PlanId);
    //查询即将开始的比赛
    List<SPlanItem> selectplanItemSoon();
    //根据方案查赛事总进球
    LinkedList<SPlanItem> selectplanItemCByPlanId(String PlanId);
}